package com.bgs.travelapp.order.controller;

import com.bgs.travelapp.order.service.OrderStatusService;
import com.bgs.travelapp.page.PageRequest;
import com.bgs.travelapp.result.CommonResult;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
@RequestMapping("/orders/orderstatus")
public class OrderStatusController {
    @Resource
    OrderStatusService orderStatusService;

    /**
     * 查询全部订单状态
     * fyys 2022.8.17 14：33
     * @return
     */
    @RequestMapping("/getOrderStatus")
    public CommonResult getOrderStatus(){
        return CommonResult.ok(orderStatusService.getOrderStatus());
    }

}
